package com.team.common.dynamic.impl;

import com.team.common.dynamic.ModifyBeanDefinition;
import org.springframework.beans.factory.config.BeanDefinitionHolder;
import org.springframework.beans.factory.support.GenericBeanDefinition;

import java.util.Set;

public class DynamicDataSourceModifyBeanDefinition implements ModifyBeanDefinition {
    @Override
    public void modify(Set<BeanDefinitionHolder> definitionHolders) {

        GenericBeanDefinition definition;
        for(BeanDefinitionHolder holder : definitionHolders){
            definition = (GenericBeanDefinition) holder.getBeanDefinition();
        }

    }
}
